luci-proto-yggdrasil: show peer latency
authorRemy D. Farley <[email protected]>
Wed, 19 Jun 2024 08:58:30 +0000 (08:58 +0000)
committerPaul Donald <[email protected]>
Sun, 30 Jun 2024 15:25:24 +0000 (17:25 +0200)
Signed-off-by: Remy D. Farley <[email protected]>
protocols/luci-proto-yggdrasil/Makefile
protocols/luci-proto-yggdrasil/htdocs/luci-static/resources/protocol/yggdrasil.js

index bc95e4b0bd5152c13c01fe8aa72d6c73dafc06b5..c864ac4aa28e740f87a30250699100d6bf6bed89 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 LUCI_TITLE:=Support for Yggdrasil Network
 LUCI_DEPENDS:=+yggdrasil
 LUCI_PKGARCH:=all
-PKG_VERSION:=1.1.0
+PKG_VERSION:=1.1.1
 PKG_MAINTAINER:=William Fleurant <[email protected]>
 
 include ../../luci.mk
index d02095beb4c4d8868a3b1b4f9da887c3645367e1..f216f8b16fd004e28aa71fb13c1e83ed582736da 100644 (file)
@@ -96,6 +96,10 @@ function updateActivePeers(ifname) {
                                cell.className = "td"
                                cell.textContent = '%t'.format(peer.uptime);
 
+                               cell = row.insertCell(-1)
+                               cell.className = "td"
+                               cell.textContent = '%.2f ms'.format(peer.latency_ms / 10**6);
+
                                cell = row.insertCell(-1)
                                cell.className = "td"
                                cell.textContent = '%.2mB'.format(peer.bytes_recvd);
@@ -136,6 +140,7 @@ var cbiActivePeers = form.DummyValue.extend({
                                E('th', {'class': 'th'}, _('Dir')),
                                E('th', {'class': 'th'}, _('IP Address')),
                                E('th', {'class': 'th'}, _('Uptime')),
+                               E('th', {'class': 'th'}, _('Latency')),
                                E('th', {'class': 'th'}, _('RX')),
                                E('th', {'class': 'th'}, _('TX')),
                                E('th', {'class': 'th'}, _('Priority')),